/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
operaciones 2 enteros
suma resta multiplicacion y division
 */

package tests;
import java.util.Scanner;
/**
 *
 * @author luis
 */
public class ClassNumeros {
    int num1, num2;
    ClassNumeros(){
        Scanner teclado = new Scanner(System.in);
        System.out.println("Introduce dos numeros: ");
        num1 = teclado.nextInt();
        num2 = teclado.nextInt();
    }

    /**
     *
     */
    public void Multiplicacion(){
        System.out.println("Multiplicacion: " + num1*num2);
    }

    /**
     *
     */
    public void Division(){
        System.out.println("Division: " + num1/num2);
    }

    /**
     *
     */
    public void Suma(){
        System.out.println("Suma: " + (num1+num2));
    }

    /**
     *
     */
    public void Resta(){
        System.out.println("Resta: " + (num1-num2));
    }

    /**
     *
     * @param args
     */
    public static void main(String[] args){
        ClassNumeros numero =new ClassNumeros();
        numero.Division();
        numero.Multiplicacion();
        numero.Suma();
        numero.Resta();
    }
}
